//商家列表约束
export interface Ilist {
    name?: string;
    foods?: Array<Igoods>;
}
//商品约束
export interface Igoods {
    category?: string; //"营养适配"
    ctime?: string; //"2020-05-25T12:02:21.000Z"
    goodsDesc?: string; //"红珠泡椒牛肉+搭配荤菜+香喷喷米饭+原味蒸蛋+搭配蔬菜+可乐\n主要原料：芹菜,牛肉"
    id?: number; // 102
    imgUrl?: string; //"1590408140609.webp"
    name?: string; //"红珠泡椒牛肉双拼+原味蒸蛋"
    price?: number; // 23.88
    rating?: number; // 100
    ratings?: Array<Iratings>; // [{…}, {…}, {…}]//用户评价
    sellCount?: number; //295
}

//约束用户评价
export interface Iratings {
    avatar?: string; // "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
    rateTime?: number; // 1469281964000
    rateType?: number; //0
    text?: string; //"很喜欢的粥"
    username?: string; //"3******c"
}

//商家的对象约束
export interface ISeller {
    avatar?: string; //头像
    bulletin?: string; //公告
    date?: Array<string>; //营业时间
    deliveryPrice?: number; //配送费
    deliveryTime?: number; //配送时间
    description?: string; //配送描述
    id?: number; //id
    minPrice?: number; //起送费
    name?: string; //商店名
    pics?: Array<string>; //图片组
    score?: number; //评分
    sellCount?: number; //销量
    supports?: Array<string>; //满减
}

//导航条的对象约束
export interface ITab {
    name: string; //导航按钮的名字
    to: string; //点击前往的hash值
}


// 约束用户评价
export interface IEvaluate {
    data: Array<IAsss>; //评论区
    errno: number;
}


//评论详情
export interface IAsss {
    avatar?:string;// "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
    deliveryTime?:number;// 30;
    rateTime?:number;// 1469281964000;
    rateType?:number;//  0;
    recommend?:Array<string>;//['南瓜粥', '皮蛋瘦肉粥', '扁豆焖面', '娃娃菜炖豆腐', '牛肉馅饼'];
    score?:number;// ;5
    text?:string;//  "不错,粥很好喝,我经常吃这一家,非常赞,以后也会常来吃,强烈推荐."
    username?:string;// "3******c"
}
